package cn.car.domains.vo.sysUser;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

@Data
@Schema(description = "创建用户参数")
public class CreateUserReq implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 用户名
     */
    @NotEmpty(message = "用户名不能为空")
    @Schema(name = "username", description = "用户名")
    private String username;

    /**
     * 密码
     */
    @NotEmpty(message = "密码不能为空")
    @Schema(name = "password", description = "密码")
    private String password;

    /**
     * 电话
     */
    @NotEmpty(message = "电话不能为空")
    @Schema(name = "phone", description = "电话")
    private String phone;
}
